package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author ywb
 * @date 2024-07-04 10:58
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon_code_batches")
@ApiModel(value="CouponCodeBatchesEntity对象", description="优惠券兑换码批次号表")
public class CouponCodeBatchEntity {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;
    
    @ApiModelProperty(value = "名称")
    private String name;
    
    private String batchNum;
    
    private Long couponId;
    
    private Long cinemaId;
    
    private Long tenantId;
    
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createdAt;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updatedAt;
    
    @TableField(select = false)
    @TableLogic(value = "null", delval = "now()")
    public LocalDateTime deletedAt;
}
